<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>图片上传测试</title>
    <style>
        *{
            background-color: #353535;
        }
        form {
          margin: 0px auto;
          width: 300px;
          border: 1px solid rebeccapurple;
        }
    </style>
</head>

<body>
  <form action="/webdemo2/updateServlet" method="post" enctype="multipart/form-data">
    <label>图片上传测试</label>
      <input type="hidden" name="action" value="imgUptest">
      <input type="text" name="userNum" placeholder="学号">
    <input type="image" src="">
    <input type="file" name="userPho">
      <input type="submit" value="提交">
  </form>
    <div id="imgget">
        <input >
        <img src="">
    </div>
</body>
</html>